package com.xydtech.rule.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 规则要素清单对象 rule_elements_items
 *
 * @author xydtech
 * @date 2024-06-06
 */
public class RuleElementsItems extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String elementsName;

    /**
     * 要素项类型 1-数字型 2-字符型
     */
    @Excel(name = "要素项类型 1-数字型 2-字符型")
    private String elementsType;

    /**
     * 是否枚举 T-是 F-否
     */
    @Excel(name = "是否枚举 T-是 F-否")
    private String isEnum;

    /**
     * 枚举值编码
     */
    @Excel(name = "枚举值编码")
    private String enumValue;

    /**
     * 枚举值名称
     */
    @Excel(name = "枚举值名称")
    private String enumName;

    /**
     * 要素项单位
     */
    @Excel(name = "要素项单位")
    private String elementsUnit;
    /**
     * 法人机构
     */
    @Excel(name = "法人机构")
    private Long deptId;

    /**
     * 创建人Id
     */
    @Excel(name = "创建人Id")
    private Long userId;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String sts;

    /**
     * 归属机构
     */
    @Excel(name = "归属机构", type = Excel.Type.EXPORT)
    @ApiModelProperty(notes = "归属机构")
    private String deptName;
    /**
     * 策略组ID
     */
    private Long groupId;
    /**
     * 要素值
     */
    private String elementsValue;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setElementsName(String elementsName) {
        this.elementsName = elementsName;
    }

    public String getElementsName() {
        return elementsName;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public String getSts() {
        return sts;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }


    public String getElementsType() {
        return elementsType;
    }

    public void setElementsType(String elementsType) {
        this.elementsType = elementsType;
    }

    public String getIsEnum() {
        return isEnum;
    }

    public void setIsEnum(String isEnum) {
        this.isEnum = isEnum;
    }

    public String getEnumValue() {
        return enumValue;
    }

    public void setEnumValue(String enumValue) {
        this.enumValue = enumValue;
    }

    public String getEnumName() {
        return enumName;
    }

    public void setEnumName(String enumName) {
        this.enumName = enumName;
    }

    public String getElementsUnit() {
        return elementsUnit;
    }

    public void setElementsUnit(String elementsUnit) {
        this.elementsUnit = elementsUnit;
    }

    public String getElementsValue() {
        return elementsValue;
    }

    public void setElementsValue(String elementsValue) {
        this.elementsValue = elementsValue;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("elementsName", getElementsName())
                .append("deptId", getDeptId())
                .append("elementsType", getElementsType())
                .append("userId", getUserId())
                .append("isEnum", getIsEnum())
                .append("createBy", getCreateBy())
                .append("enumValue", getEnumValue())
                .append("createTime", getCreateTime())
                .append("enumName", getEnumName())
                .append("sts", getSts())
                .append("elementsUnit", getElementsUnit())
                .append("remark", getRemark())
                .append("deptName", getDeptName())
                .append("elementsValue", getElementsValue())
                .toString();
    }
}